package com.x.linx.fenfencard.model;

import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EBean;

import com.x.linx.fenfencard.model.meta.IRequestCallback;

@EBean
public class User {
	// + for test
	private static final String TEST_USERNAME = "0000000000000001";
	private static final String TEST_PASSWORD = "123456";
	// - for test

	@Bean
	UserProxy mUserProxy;

	String username = TEST_USERNAME;
	String password = TEST_PASSWORD;
	String token;

	public void signin(IRequestCallback callback) {
		signin(username, password, callback);
	}

	public void signin(final String username, final String password,
			final IRequestCallback callback) {
		mUserProxy.signin(username, password, callback);
	}

	// + set & get
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	// - set & get
}
